<template>
  <el-form inline label-width="auto" size="medium" class="search-form" v-loading.fullscreen.lock="loading">
    <el-form-item label="商品名">
      <el-input v-model="search.goodsName" class="search-input"></el-input>
    </el-form-item>
    <el-form-item label="状态">
      <el-select clearable v-model="search.status" class="search-input">
        <el-option v-for="item in statusList" :key="item.value" :value="item.value" :label="item.label">
        </el-option>
      </el-select>
    </el-form-item>
  </el-form>
</template>

<script>
  export default {
    props: {
      search: {
        type: Object,
        required: true
      }
    },

    data() {
      return {
        loading: false,
        inputLoading: false,
        statusList: this.i18n.getDropDown('goods.goodsDefs.status', [-2, -1, 0, 1, 2])
      };
    }
  };

</script>

<style lang="scss" scoped>
  @import '~viewStyle/searchForm';

</style>
